Method: D.[]
- Defined in:
- lib/picolena/templates/lib/development_helpers.rb
.[](query) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/picolena/templates/lib/development_helpers.rb', line 23 def self.[](query) f=Finder.new(query.to_s) hits=f.total_hits if hits > 0 then puts "#{hits} document(s) found for #{query}:" f.matching_documents.each{|doc| puts " "+doc.filename} puts " ..........." if hits > f.matching_documents.size f.matching_documents.first else puts "Nothing found for #{query}" end end |